<!-- S 主导航 -->
<script src="${basePath}page/ftl/basic/cart.js"></script>
<nav class="nav">
	<ul class="main-nav">
		<#if aid?exists && aid == "0">
			<li class="cur"><a href="${basePath}">首 页</a></li>
		<#else>
			<li><a href="${basePath}">首 页</a></li>
		</#if>
		<#if dicts?exists>
			<#list dicts as dict>
				<#if aid?exists && aid == (dict_index+1)+"">
					<li class="cur"><a href="${basePath + dict.description?default('')}">${dict.name}</a></li>
				<#else>
					<li><a href="${basePath + dict.description?default('')}">${dict.name}</a></li>
				</#if>
			</#list>
		</#if>
		<#if aid?exists && aid == "99">
			<li class="cur"><a href="${basePath}map/index.htm">商家地图</a></li>
		<#else>
			<li><a href="${basePath}map/index.htm">商家地图</a></li>
		</#if>
	</ul>
	<ul class="sub-nav">
		<#if categorys?exists>
			<#list categorys as category>
				<li><a href="${basePath + "search/c/" + category.id + ".htm"}">${category.name}</a></li>
			</#list>
		</#if>
	</ul>
		
	<!-- S 购物车 -->
	<div class="mini-cart" id="J-mini-cart">
		<a href="#" class="cart-hd">购物车<span><#if order?exists>${order.amount?default(0)}<#else>0</#if></span>件<b></b></a>
		<div class="mini-cart-cont">
			<#if order?exists && details?size != 0>
				<div class="mini-cart-full show" id="J-mini-cart-full">
					<#list details as detail>
						<dl class="clearfix" id="dl_${detail.id}">
							<dt class="img"><a href="${basePath+detail.entityUrl?default('')}"><img width="54" height="54" src="${img_server_url + "/" + detail.entityImg?default('')}" alt="" /></a></dt>
							<dd class="n"><a href="${basePath+detail.entityUrl?default('')}">${detail.entityName}</a></dd>
							<dd class="num">
								<em class="price">${detail.price} x ${detail.amount}</em>
								<span class="act del"><a href="javascript:removeCart(${detail.id})">删除</a></span>
							</dd>
						</dl>
					</#list>
					<ul class="statistics">
						<!--<li class="collect"><a href="#"><b></b>收藏商品</a></li>-->
						<li class="total"><em>${order.amount}</em>件商品 总计<em>${order.score}</em><span>积分</span></li>
					</ul>
					<div class="mini-cart-act">
						<a href="#" class="checkout">去结算</a>
						<a href="${basePath}member/index.htm?url=cart/list.htm" class="check">查看购物车&gt;&gt;</a>
					</div>
				</div>
			<#else>
				<div class="mini-cart-empty show" id="J-mini-cart-empty">
					<span>您的购物车中暂时没有商品。</span>
				</div>
			</#if>
		</div>
	</div>
	<!-- E 购物车 -->
</nav>
<!-- E 主导航 -->